<?php
    header('Access-Control-Allow-Origin:*');    
    // 连接数据库

    $host = 'b-9vhyn3sjrmx1se.bch.rds.gz.baidubce.com:3306' ;
    $user = 'b_9vhyn3sjrmx1se' ;
    $pwd = 'bilibili2233' ;
    $db = 'b_9vhyn3sjrmx1se' ;
    $conn = mysqli_connect($host , $user , $pwd , $db) ;

    // 判断是否连接
    if(!$conn) {
        die('数据库连接失败') ;
    }
